import 'package:blog_chyk/models/comment.dart';

import 'post.dart';

// mock数据
const List<Post> mockPosts = [
  Post(
    id: '1',
    title: 'Flutter 入门笔记',
    summary: '写给有 JS 基础的同学，一张图看懂 Widget 与 React 的映射关系。',
    cover: 'https://picsum.photos/id/10/400/200',
  ),
  Post(
    id: '2',
    title: 'Dart 语法速查',
    summary: '花 5 分钟掌握箭头函数、可选参数、空安全，就能写 Flutter。',
    cover: 'https://picsum.photos/id/20/400/200',
  ),
  Post(
    id: '3',
    title: '布局三板斧',
    summary: 'Row、Column、Expanded 搞定 90% 排布，剩下的交给 ListView。',
    cover: 'https://picsum.photos/id/30/400/200',
  ),
];

List<Comment> mockComments = [
  Comment(
    id: 0,
    date: DateTime(2024, 10, 28, 15, 30),
    context: '这是一条评论',
    userInfo: UserInfo(
      uid: 0,
      name: '作者',
      avatar: 'https://picsum.photos/id/100/200',
    ),
  ),
  Comment(
    id: 1,
    date: DateTime(2024, 10, 28, 15, 31),
    context: '这是第二条评论',
    userInfo: UserInfo(
      uid: 1,
      name: '作者1',
      avatar: 'https://picsum.photos/id/100/200',
    ),
  ),
  Comment(
    id: 2,
    date: DateTime(2024, 10, 28, 15, 32),
    context: '这是第三条评论',
    userInfo: UserInfo(
      uid: 2,
      name: '作者2',
      avatar: 'https://picsum.photos/id/100/200',
    ),
  ),
];
